package com.g2.rpc.remoting;


import io.netty.channel.Channel;

/**
 * 描述:
 * ${DESCRIPTION}
 *
 * @author lingjiu.kong
 * @version 1.0
 * @date 2021-03-08 23:42
 */
public interface Handler {

    // 收到数据 【发过来的请求、服务器给的响应】
    void onReceive(Channel channel, Object message) throws Exception;

    void onWrite(Channel channel, Object message) throws Exception;

}
